package com.gree.changying.activity.mainactivity.framgent.homefrm.tuijian.adapter;

import android.widget.ImageView;

import androidx.annotation.LayoutRes;
import androidx.annotation.Nullable;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.gree.changying.R;
import com.gree.changying.activity.mainactivity.framgent.homefrm.tuijian.bean.Zxzx;

import java.util.List;

public class ZxzxAdapter extends BaseQuickAdapter<Zxzx, BaseViewHolder> {
    public ZxzxAdapter(@LayoutRes int layoutResId, @Nullable List data) {
        super(layoutResId, data);
    }
    @Override
    protected void convert(BaseViewHolder helper, Zxzx item) {
        ImageView img = helper.itemView.findViewById(R.id.img);
        Glide.with(mContext).load(R.drawable.img_xinwen).into(img);
        helper.setText(R.id.title,item.getTitle());
        helper.setText(R.id.time,item.getTime());
        helper.setText(R.id.tag,item.getTag());
    }
}